﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Castle.MicroKernel.Registration;
using Castle.MicroKernel.SubSystems.Configuration;
using Castle.Windsor;
using Test.Diploma.BL.Managers;
using Test.Diploma.BL.Hibernate.Managers;

namespace Test.Diploma.UI.Web.MVC.Code.WindsorInstallers
{
    public class ManagerInstaller:IWindsorInstaller
    {
        public void Install(IWindsorContainer container, IConfigurationStore store)
        {
            container.Register
            (
                    Component.For<IStoreManager>().ImplementedBy<StoreManager>().LifeStyle.Transient
            );
        }
    }
}